<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="widget" uri="/widget" %>

<div class="container-fluid center-block pt10">
    <div class="row">
        <div class="col-sm-8 col-lg-8">
            <c:if test="${not empty errorNo}">
                <div class="alert alert-danger tc"><spring:message code="docrepository.errorNo.${errorNo}" text="" /></div>
            </c:if>
            <form action='<widget:actionUrl mode="/category/doCategoryEdit" />' method="post" class="form-horizontal">
                <div class="form-group">
                    <label for="categoryName" class="col-sm-2 control-label"><spring:message code="docrepository.category.categoryName" /></label>
                    <div class="col-sm-10">
                        <input id="categoryName" name="categoryName" class="form-control" />
                    </div>
                </div>
                <div class="form-group">
                    <label for="parent" class="col-sm-2 control-label"><spring:message code="docrepository.category.parent" /></label>
                    <div class="col-sm-10">
                        <select id="parent" name="parent" class="form-control">
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"><spring:message code="docrepository.category.ifavailable" text="" /></label>
                    <div class="col-sm-10">
                        <label class="radio-inline"><input type="radio" name="available" value="1" checked><spring:message code="docrepository.category.available" text="" /></label>
                        <label class="radio-inline"><input type="radio" name="available" value="0"><spring:message code="docrepository.category.unavailable" text="" /></label>
                    </div>
                </div>
                <div class="center-block tc">
                    <button type="submit" class="btn btn-primary"><spring:message code="docrepository.common.action.submit" /></button>
                    <button type="button" class="btn btn-default"><spring:message code="docrepository.common.action.cancel" /></button>
                </div>
            </form>
        </div>
    </div>
</div>

<script type="text/javascript">
    (function(){
    	$(document).ready(function(){
    	});
    })(jQuery);
</script>